// window.onload = function() {
//轮播图js代码；
  var img = document.getElementById("SlideshowOne");
  var slideshow = document.getElementById("slideshow");
  var OptionButtonOne = document.getElementById("OptionButtonOne");
  var OptionButtonTwo = document.getElementById("OptionButtonTwo");
  var index = 1;
  var timer;
  window.onload = function () {
    function lunbo() {
      //获取img对象
      if (index == 1) {
        img.src = "../img/banna_03_fd4q.jpg";
        index = 0;
        // alert(index)
      } else {
        img.src = "../img/banner_03_1y5v.jpg";
        index = 1;
      }
    }

    //2.定义定时器
    timer = setInterval(lunbo, 2000);
    slideshow.onmouseover = function () {
      // alert("onmouseover我进来了");
      clearInterval(timer);
    }
    slideshow.onmouseout = function () {
      // alert("onmouseout我进来了");
      //2.定义定时器
      timer = setInterval(lunbo, 2000);
    }
    OptionButtonOne.onmouseover = function () {
      // alert("onmouseover我进来了");
      img.src = "../img/banner_03_1y5v.jpg";
      OptionButtonOne.style.background = "red";
      OptionButtonTwo.style.background = "white";
      // clearInterval(timer);
    }
    OptionButtonTwo.onmouseover = function () {
      // alert("onmouseover我进来了");
      img.src = "../img/banna_03_fd4q.jpg";
      OptionButtonOne.style.background = "white";
      OptionButtonTwo.style.background = "red";
      // clearInterval(timer);
    }
  }
// }
